# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>

pkgname=qpress
pkgver=1.1
_pkgver=11
pkgrel=4
pkgdesc="File archiver using QuickLZ and designed to utilize fast storage systems to their max"
arch=('loong64' 'x86_64')
url="https://quicklz.com/"
license=('GPL')
depends=('gcc-libs')
source=(https://www.quicklz.com/qpress-$_pkgver-source.zip)
sha256sums=('4bb66b1383bbc4c5490eec6088d37109e11205fb9f94ccd04cb84ec069829633')
DLAGENTS=('https::/usr/bin/curl -A "" -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u')

build() {
  sed -i '/#include <sys\/types.h>/ i #include <unistd.h>' qpress.cpp
  make
}

package(){
  install -Dm755 qpress "$pkgdir"/usr/bin/qpress
}
